home *** CD-ROM | disk | FTP | other *** search
/ Geek Games #12 / GEGA012.iso / Jogos de Azar / 1721-apuesten.swf / scripts / C_BackToSiteButtonCLASS.as < prev    next >
Text File  |  2006-01-17  |  860b  |  35 lines

  1. _global.C_BackToSiteButtonCLASS = function()
  2. {
  3.    this.init();
  4. };
  5. C_BackToSiteButtonCLASS.prototype = new MovieClip();
  6. C_BackToSiteButtonCLASS.prototype.init = function()
  7. {
  8.    this.back_btn.root = this;
  9.    this.back_btn.onRelease = function()
  10.    {
  11.       o = this.root;
  12.       getURL(o.url,o.target);
  13.    };
  14.    this.loadRules();
  15. };
  16. C_BackToSiteButtonCLASS.prototype.loadRules = function()
  17. {
  18.    var x = new XML();
  19.    x.root = this;
  20.    x.ignoreWhite = true;
  21.    x.onLoad = function(s)
  22.    {
  23.       if(!s)
  24.       {
  25.          trace("╨╝╨╡╨╜╤Ä ╨╜╨╡ ╨╖╨░╨│╤Ç╤â╨╖╨╕╨╗╨╛╤ü╤î!");
  26.       }
  27.       var o = this.firstChild.attributes;
  28.       this.root.url = o.url;
  29.       this.root.target = o.target;
  30.    };
  31.    x.load(this.configPath);
  32. };
  33. Object.registerClass("C_BackToSiteButtonCLASS",C_BackToSiteButtonCLASS);
  34. delete _global.C_BackToSiteButtonCLASS;
  35.